import request from "@/utils/request";

// 验证码
export const picture = () => {
  return request.get("/captcha/image");
};
// 校验验证码
export const jiaoyan = (obj) => {
  return request.post("/captcha/sendSmsCaptcha", {
    form: {
      captchaCode: obj.captchaCode,
      captchaKey: obj.captchaKey,
      mobile: obj.mobile,
    },
  });
};
//手机验证码登陆
export const mobileLogin = (obj) => {
  return request.post("/passport/login", {
    form: {
      isParty: false,
      partyData: {},
      smsCode: obj.smsCode,
      mobile: obj.mobile,
    },
  });
};

// 首页数据
export const getsysj = () => {
  return request.get("/page/detail", {
    params: {
      pageId: 0,
    },
  });
};
